package com.lwm.service;

import com.github.pagehelper.Page;
import com.github.pagehelper.PageInfo;
import com.lwm.domain.InventoryApproval;
import com.lwm.domain.ResponseResult;
import com.lwm.dto.PageParams;
import org.springframework.data.domain.PageRequest;

/**
 * 入库申请表(InventoryApproval)表服务接口
 *
 * @author lzl
 * @since 2023-10-17 13:05:00
 */
public interface InventoryApprovalService {

    /**
     * 通过ID查询单条数据
     *
     * @param id 主键
     * @return 实例对象
     */
    ResponseResult<InventoryApproval> queryById(Long id);

    /**
     * 分页查询
     *
     * @param inventoryApproval 筛选条件
     * @param pageParams      分页对象
     * @return 查询结果
     */
    ResponseResult<PageInfo> queryByPage(InventoryApproval inventoryApproval, PageParams pageParams);

    /**
     * 新增数据
     *
     * @param inventoryApproval 实例对象
     * @return 实例对象
     */
    InventoryApproval insert(InventoryApproval inventoryApproval);

    /**
     * 修改数据
     *
     * @param inventoryApproval 实例对象
     * @return 实例对象
     */
    ResponseResult update(InventoryApproval inventoryApproval);

    /**
     * 通过主键删除数据
     *
     * @param id 主键
     * @return 是否成功
     */
    boolean deleteById(Integer id);

}
